package com.glela.platform.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.glela.platform.mapper.UserPointJournalMapper;
import com.glela.platform.model.UserPointJournal;
import com.glela.platform.service.UserPointJournalService;

@Service("userPointJournalService")
public class UserPointJournalServiceImpl implements UserPointJournalService {
	@Resource
	private UserPointJournalMapper userPointJournalMapper;
	
	@Override
	public boolean addSelective(UserPointJournal addUserPointJournal) {
		return userPointJournalMapper.insertSelective(addUserPointJournal)==1;
	}

	@Override
	public List<UserPointJournal> getMyPointListByPage(Long userId, int pageLimit,
			Integer pageSize) {
		return this.userPointJournalMapper.getMyPointListByPage(userId,pageLimit,pageSize);
	}

	@Override
	public int batchInsert(List<UserPointJournal> userPointJournalList) {
		return userPointJournalMapper.batchInsert(userPointJournalList);
	}
	
}
